if(document.createElement && (typeof effi_660009863_mastertag == 'undefined')) {
	var protocol = 'http'+((document.location.protocol == 'https:')?'s':'')+'://';
	var effi_660009863_idp = '';
	var effi_660009863_catid = '';
	var effi_660009863_ref = '';
	var effi_660009863_mnt = '';
	var effi_660009863_params = new Array();
	var effi_660009863_mastertag = new Object();

	function fn_effi_660009863_parseurl(url) {
		var effi_660009863_result = new Array();
		var effi_660009863_params1 = url.split('&');
		for(var i=0; i<effi_660009863_params1.length; i++) {
			var t = effi_660009863_params1[i].split('=');
			 effi_660009863_result[t[0]] = t[1];
		}
		return  effi_660009863_result;
	}

	var effi_660009863_str_src_js = 'mastertag.effiliation.com';
	var effi_660009863_allScripts = document.getElementsByTagName('script');
	for(var i=0; i<effi_660009863_allScripts.length;i++) {
		var currentScript = effi_660009863_allScripts.item(i);
		var reg_src_js = new RegExp(effi_660009863_str_src_js,'g');
		if(currentScript.src && reg_src_js.test(currentScript.src)) {
			var param = currentScript.src.lastIndexOf('?');
			effi_660009863_params = fn_effi_660009863_parseurl(currentScript.src.substring(param+1));
			break;
		}
	}

	switch(effi_660009863_params.page) {
		case('product'):
			if(typeof effi_660009863_params.idp != 'undefined') effi_660009863_idp = effi_660009863_params.idp;
			if(typeof effi_660009863_params.idcat != 'undefined') effi_660009863_catid = effi_660009863_params.idcat;
			break;

		case('category'):
			if(typeof effi_660009863_params.idcat != 'undefined') effi_660009863_catid = effi_660009863_params.idcat;
			break;

		case('addcart'):
		    if(typeof effi_660009863_params.idp != 'undefined') effi_660009863_idp = effi_660009863_params.idp;
			break;

		case('sale'):
			if(typeof effi_660009863_params.idp != 'undefined') effi_660009863_idp = effi_660009863_params.idp;
			if(typeof effi_660009863_params.montant != 'undefined') effi_660009863_mnt = effi_660009863_params.montant;
			if(typeof effi_660009863_params.ref != 'undefined') effi_660009863_ref = effi_660009863_params.ref;
			break;

		default :
			break;
    }
    
    // Start MasterTag Effiliation
	if(effi_660009863_params.page == 'home'){
	}

	if(effi_660009863_params.page == 'generic'){
	}

	if(effi_660009863_params.page == 'product'){
		// Tag Adverline
		var adv_cst_v_tag_101307_brand=effi_660009863_catid;
		var adv_cst_v_tag_101307_product=effi_660009863_idp;
		var adv_script=protocol+'ads2.adverline.com/retargetproduit/partnertag/101307_tag.js';
		(function(){
			try {
				var adv_header = document.getElementsByTagName("head")[0];
				var adv_rt_script = document.createElement("script");
				adv_rt_script.type = "text/javascript";
				adv_rt_script.src = adv_script;
				adv_header.appendChild(adv_rt_script);
			} catch (e) {}
		})();
	}

	if(effi_660009863_params.page == 'category'){
	}

	if(effi_660009863_params.page == 'addcart'){
		// Tag Adverline
		var adv_cst_v_cart_101307_product=effi_660009863_idp;
		var adv_script=protocol+'ads2.adverline.com/retargetproduit/partnertag/101307_cart.js';
		(function(){
	                try {
        	                var adv_header = document.getElementsByTagName("head")[0];
                	        var adv_rt_script = document.createElement("script");
                        	adv_rt_script.type = "text/javascript";
	                        adv_rt_script.src = adv_script;
        	                adv_header.appendChild(adv_rt_script);
                	} catch (e) {}
		})();
	}
 
 	if(effi_660009863_params.page == 'sale'){
		// Tag Adverline
		var adv_cst_v_confirmation_101307_section='CST_ORDERID_'+effi_660009863_ref+',CST_TOTALORDER_'+effi_660009863_mnt;
		var adv_cst_v_confirmation_101307_product=effi_660009863_idp;
		var adv_cst_v_confirmation_101307_fprice='';
		var adv_script=protocol+'ads2.adverline.com/retargetproduit/partnertag/101307_confirmation.js';
		(function(){
	                try {
        	                var adv_header = document.getElementsByTagName("head")[0];
                	        var adv_rt_script = document.createElement("script");
                        	adv_rt_script.type = "text/javascript";
	                        adv_rt_script.src = adv_script;
        	                adv_header.appendChild(adv_rt_script);
                	} catch (e) {}
		})();
	}
	// End MasterTag Effiliation
}
// adverline : 101307
